#include "../../muduo/socket.hpp"
#include <string>
int main()
{
    Muduo::Socket client_sock;
    client_sock.CreateClient(8080,"127.0.0.1");
    for(int i = 0;i<5;i++)
    {
        std::string str = "hello world";
        client_sock.Send(str.c_str(),str.size());
        char buf[1024] = {0};
        client_sock.Recv(buf,1023);
        DLOG("%s",buf);
        sleep(1);
    }
    while(true) sleep(1);
    
    return 0;
}